package cn.book.admin.dao;

import cn.book.admin.entity.BookInfo;
import cn.book.admin.entity.BookType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookDao {
    public List<BookType> findTypes();

    public List<BookInfo> search(@Param("name") String name,@Param("pageSize")int pageSize,@Param("pageNo")int pageNo);
    public int  searchTotal(@Param("name")String name);

    public BookInfo get(long id);
    public int del(long id);
    public int update(BookInfo book);

    public int add(BookInfo book);
}
